package br.mil.eb.pqrmnt7.scc.controller.jsf.linhacontrolesaldocombustivel;

import javax.enterprise.inject.Produces;
import javax.inject.Named;


import br.mil.eb.pqrmnt7.scc.entity.controleabastecimento.LinhaControleSaldoCombustivelEntity;
import br.mil.eb.pqrmnt7.scc.controller.jsf.AppMB;

import com.powerlogic.jcompany.commons.annotation.PlcUriIoC;
import com.powerlogic.jcompany.commons.config.stereotypes.SPlcMB;
import com.powerlogic.jcompany.controller.jsf.annotations.PlcHandleException;
import com.powerlogic.jcompany.controller.jsf.PlcEntityList;
import com.powerlogic.jcompany.config.collaboration.FormPattern;

import com.powerlogic.jcompany.config.collaboration.PlcConfigFormLayout;
import com.powerlogic.jcompany.config.collaboration.PlcConfigForm;
import com.powerlogic.jcompany.config.collaboration.PlcConfigForm.ExclusionMode;



 
import com.powerlogic.jcompany.config.aggregation.PlcConfigAggregation;

@PlcConfigAggregation(
		entity = br.mil.eb.pqrmnt7.scc.entity.controleabastecimento.LinhaControleSaldoCombustivelEntity.class
		
	)
	


@PlcConfigForm (
	
	formPattern=FormPattern.Man,
	formLayout = @PlcConfigFormLayout(dirBase="/WEB-INF/fcls/controleabastecimento")
	
	
)


/**
 * Classe de Controle gerada pelo assistente
 */
 
@SPlcMB
@PlcUriIoC("linhacontrolesaldocombustivel")
@PlcHandleException
public class LinhaControleSaldoCombustivelMB extends AppMB  {

	private static final long serialVersionUID = 1L;
	
	
     		
	/**
	* Entidade da ação injetado pela CDI
	*/
	@Produces  @Named("linhacontrolesaldocombustivel")
	public LinhaControleSaldoCombustivelEntity createEntityPlc() {

         if (this.entityPlc==null) {
              this.entityPlc = new LinhaControleSaldoCombustivelEntity();
              this.newEntity();
         }

        return (LinhaControleSaldoCombustivelEntity) this.entityPlc;   
        
	}
	
	/**
	 * Lista de entidades da ação injetado pela CDI
	*/
	@Produces  @Named("linhacontrolesaldocombustivelLista")
	public PlcEntityList createEntityListPlc() {
		
		if (this.entityListPlc==null) {
			this.entityListPlc = new PlcEntityList();
			this.newObjectList();
		}
		return this.entityListPlc;
	}		
	
}
